import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;


public class ReadFile {

	
	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException {
		String fileName = "F:\\001.txt";
		String line = null;
		
		try{
			FileReader fileReader = new FileReader(fileName);
			BufferedReader bufferedReader = new BufferedReader(fileReader);
			
			while((line = bufferedReader.readLine())!= null){
				System.out.println(line);
				
			}
			bufferedReader.close();
			
		
		}
		catch(FileNotFoundException ex){
			System.out.println("Not found");
			
			
		}
		catch(IOException ex){
			System.out.println("Eoor");
		}
		
		// TODO Auto-generated method stub

	}

}
